<template>
  <div>
    <el-dialog
      v-model="dialogVisible"
      width="80%"
      align-center
      :show-close="false"
      destroy-on-close
      draggable
    >
      <template #header="{ close }">
        <div class="dialog-header flex justify-between items-center">
          <div>历史参与项目</div>
          <el-icon class="el-icon--left cursor-pointer" @click="close"
            ><CircleCloseFilled color="#fff"
          /></el-icon>
        </div>
      </template>
      <div class="bg-white m-[10px]">
        <HistoryJoinProject :applierId="applierId" />
      </div>
    </el-dialog>
  </div>
</template>

<script setup>
import HistoryJoinProject from "./HistoryJoinProject.vue";
const dialogVisible = ref(false);
const applierId = ref(null);
const view = (id) => {
  applierId.value = id;
  dialogVisible.value = true;
};
defineExpose({ view });
</script>

<style scoped lang="scss">
@import url("@/views/project/index.scss");
:deep(.el-dialog__body) {
  padding-bottom: 0;
}
</style>
